using System;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.Shell;
using IOleServiceProvider = Microsoft.VisualStudio.OLE.Interop.IServiceProvider;

namespace MH.WsdlWorks
{
    [Guid("2ECF76FC-73D6-4006-95D7-8971363205D7")]    
    public class WsdlWorksProjectFactory : SimpleProjectFactory    
    {        
        public WsdlWorksProjectFactory(Package package)            
            : base(package)        
        {        
        }        
        
        protected override SimpleProjectNode CreateProject()        
        {
            WsdlWorksProject project = new WsdlWorksProject(); 
            project.SetSite((IOleServiceProvider)(((IServiceProvider)this.Package).GetService(typeof(IOleServiceProvider)))); 
            return project;     
        }    
    }
}